package singleton.demo1;

/**
 * @auth 吴志勇
 * @date 2022/11/2 14:43
 */
public class MyRunnable implements Runnable {
    @Override
    public synchronized void run() {
        XieFactory xieFactory = XieFactory.getInstance();
        System.out.println(Thread.currentThread().getName()+"获取到的鞋厂为："+xieFactory);
    }
}
